﻿<!--
Copyright(c) 2011 TOSHIBA CORPORATION, All Rights Reserved.
 

 
Author      Shi Xiaokang
Version 	1.00	Date: 2011-1-21
-->
 

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" x:Key="BorderLinerBrush">
        <LinearGradientBrush.GradientStops>
            <GradientStop Offset="0.01" Color="#AA000000" />
            <GradientStop Offset="0.1"  Color="#99000000" />
            <GradientStop Offset="0.9"  Color="#55000000" />
            <GradientStop Offset="1"  Color="#bb000000" />
        </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>

    <Style TargetType="{x:Type Border}" x:Key="ucBorder">
        <Setter Property="Background"    Value="{StaticResource BorderLinerBrush}" />
        <Setter Property="CornerRadius" Value="6" />
        <Style.Triggers>
            <EventTrigger RoutedEvent="Border.Loaded">
                <BeginStoryboard>
                    <Storyboard  >
                        <DoubleAnimation From="0" To="1" AccelerationRatio=".25" DecelerationRatio=".75" 
                                      FillBehavior="HoldEnd" Duration="00:00:0.5"
                                     Storyboard.TargetProperty="Opacity" />
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Style.Triggers>
    </Style>

</ResourceDictionary>